package com.xcity.pomelo.response;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializeFilter;
import com.xcity.game.skill.PlayerSkill;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class SkillInfoResponse extends Response {
	
	private PlayerSkill skill;
	
	public SkillInfoResponse(int serial, PlayerSkill skill) {
		super(serial);
		this.skill = skill;
	}
	
	public PlayerSkill getSkill() {
		return skill;
	}

	public void setSkill(PlayerSkill skill) {
		this.skill = skill;
	}

	@JSONField(serialize = false)
	@Override
	public SerializeFilter[] getJsonSerializeFilters() {
		return SkillListResponse.FILTERS;
	}

}
